package controllers

import javax.inject.Inject
import play.api.mvc.{AbstractController, ControllerComponents}
import play.api.routing.JavaScriptReverseRouter

/**
 * Created by yz on 13/11/2020
 */
class AppController  @Inject()(cc: ControllerComponents) extends  AbstractController(cc){

  def javascriptRoutes = Action { implicit request =>
    Ok(
      JavaScriptReverseRouter("jsRoutes")(

        controllers.routes.javascript.GenomeBrowseController.getAllBgAnnos,
        controllers.routes.javascript.GenomeBrowseController.getDetailInfo,
        controllers.routes.javascript.GenomeBrowseController.detailInfoBefore,
        controllers.routes.javascript.GenomeBrowseController.boxPlotByGeneId,

      )
    ).as("text/javascript")
  }


}
